<?
$module_id 			= 6;
$module_name		= "Quản lý nhóm câu hỏi";

$fs_table			= "faq_categories";
$id_field			= "fac_id";
$name_field			= "fac_name";
$fs_errorMsg		= "";

$add                = "add.php";
$edit               = 'edit.php';
$listing			= "listing.php";
//check security...
require_once("../../resource/security/security.php");
//Check user login...
checkLogged();
//Check access module...
if(checkAccessModule($module_id) != 1) redirect($fs_denypath);

function get_all_faq_group_options(){
    $sql = 'SELECT * FROM faq_categroup WHERE 1 ORDER BY fg_name ASC';
    $db_faqgroup = new db_query($sql);
        //var_dump($db_news);
    $options = array(0 => '');
    while($group = mysql_fetch_array($db_faqgroup->result)){
        $options[$group['fg_id']] = $group['fg_name'];
    }
    return $options;
}
							
?>